package com.example.springcloud.controller;

import com.example.springcloud.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName SendMessageController
 * @Author Admin
 * @Date 2020/9/10 12:15
 * @Version 1.0
 **/
@RestController
public class SendMessageController {
    @Resource
    private IMessageProvider iMessageProvider;

    @GetMapping(value = "/sendMassage")
    public String sendMessage() {
        return iMessageProvider.sendMessage();
    }
}
